package com.gbei.center.oauth.mapper;

import com.gbei.center.oauth.model.AuthClientUser;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;
import tk.mybatis.mapper.common.Mapper;

@Component
public interface AuthClientUserMapper extends Mapper<AuthClientUser> {

    /**
     * 根据 clientId、userId、scopeId查询用户给某个接入客户端的授权信息
     * @param clientId 接入的客户端ID
     * @param userId 用户ID
     * @return AuthClientUser
     */
    AuthClientUser selectByClientId(@Param("clientId") String clientId, @Param("userId") String userId);
}